Skip to content

feat: add shared email footer and send_email MCP tool#95

Merged
sweetmantech merged 4 commits intotestfrom
sweetmantech/myc-3863-api-email-tool-email-footer-shared-with-email-client
Jan 7, 2026
Merged

feat: add shared email footer and send_email MCP tool#95
sweetmantech merged 4 commits intotestfrom
sweetmantech/myc-3863-api-email-tool-email-footer-shared-with-email-client

Conversation

@sweetmantech
Copy link
Contributor

Summary

  • Extract email footer to shared getEmailFooter function for DRY compliance
  • Update generateEmailResponse to use the shared footer
  • Add send_email MCP tool that automatically appends the footer to all outbound emails
  • Add RECOUP_FROM_EMAIL constant for default sender address

Test plan

  • Unit tests for getEmailFooter (6 tests)
  • Unit tests for sendEmailSchema validation (8 tests)
  • All 34 tests passing

🤖 Generated with Claude Code

- Extract email footer to shared getEmailFooter function
- Update generateEmailResponse to use shared footer
- Add send_email MCP tool with automatic footer appending
- Add RECOUP_FROM_EMAIL constant for default sender
- Add unit tests for getEmailFooter and sendEmailSchema

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
recoup-api Ready Ready Preview Jan 7, 2026 6:14pm

@coderabbitai
Copy link

coderabbitai bot commented Jan 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech changed the base branch from main to test January 7, 2026 17:49
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
…mail tool

- Add room_id parameter to sendEmailSchema
- Add getEmailFooter import and usage in registerSendEmailTool
- Update test to expect footer in HTML
- Remove duplicate emails folder structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Footer is now always included regardless of text vs html input
- Text input is converted to HTML with <p> tags
- Removed text field from sendEmailWithResend call (DRY/KISS)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sweetmantech sweetmantech merged commit 54bb239 into test Jan 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant